import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/index.vue'
import Introduction from './views/introduction.vue'
import Apply from './views/apply.vue'
import About from './views/about.vue'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: '/dist',
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/introduction',
      name: 'Introduction',
      component: Introduction
    },
    {
      path: '/apply',
      name: 'Apply',
      component: Apply
    },
    {
      path: '/about',
      name: 'About',
      component: About
    },
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    // }
  ]
})
